const router = require('koa-router')()

const userCtrl = require('../controllers/userCtrl')
const annouceCtrl = require('../controllers/annouce')
const newsCtrl = require('../controllers/newsCtrl')
const hospitalCtrl = require('../controllers/hospitalCtrl')
const shopCtrl = require('../controllers/shopCtrl')
const adminCtrl = require('../controllers/adminCtrl.js')


//web 部分
router.post('/weblogin', userCtrl.weblogin)

router.post('/userlist', userCtrl.userlist)

router.post('/webAppeallist', userCtrl.webAppeallist)

router.post('/deleteappeal', userCtrl.deleteAppealweb)

router.post('/editappeal', userCtrl.editAppealstatus)

router.post('/orderlistweb', shopCtrl.orderlistWeb)

router.post('/editorderstatus', shopCtrl.editOrderStatusWeb)

router.post('/editannouce', userCtrl.editAnnouce)

router.post('/newslist', newsCtrl.webnewsList)

router.post('/addnews', newsCtrl.addNews)

router.post('/deletenews', newsCtrl.deletenews)

router.post('/deleteadm', adminCtrl.deleteAdm)

router.post('/addadm', adminCtrl.addAdm)

router.post('/adminlist', adminCtrl.adminList)

router.post('/editpwd', adminCtrl.editpwdWeb)

router.post('/editehosiptal', hospitalCtrl.editeHosiptal)

router.post('/deletegood', shopCtrl.deleteGood)

router.post('/editgood', shopCtrl.editGood)

router.post('/addgood', shopCtrl.addGood)










module.exports = router
